package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.tool.utils.DateUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (WorkLineLog)实体类
 * @since 2024-05-28 11:00:58
 */
@Data
@TableName("work_line_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WorkLineLog对象", description = "")
public class WorkLineLog extends BaseEntity  {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long lineId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long arrangeId;

    private Integer isTrim;

    private Integer isClear;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    private LocalDateTime trimBeginTime;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    private LocalDateTime trimEndTime;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String loadLog;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String fixedMachineLog;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String flowMachineLog;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String underMachineLog;

    /**
     * pass unpass cancel
     */
    private String auditStatus;
    private String unpassReason;
}

